Don't fail "ostree remote refs" if writing the summary cache is not permitted
authorAlexander Larsson <alexl@redhat.com>
Fri, 18 Mar 2016 09:00:58 +0000 (10:00 +0100)
committerAlexander Larsson <alexl@redhat.com>
Fri, 18 Mar 2016 16:33:39 +0000 (17:33 +0100)
commitcb60de0f95fe15d8803842d5addefcdcb87b434c
tree6bac2766e477913945ed63e1dfa15210954d8706
parentc58ad36840da4a23dac49434b19ed4f77c22946f
Don't fail "ostree remote refs" if writing the summary cache is not permitted

It used to be allowed to run something like "ostree remote refs" on
a read-only (e.g. system) repo. However, the summary cache caused that to
break. This commit just makes it not save the cache if we get some kind
of permission error when writing it. It'll still work, even without the
cache.

https://bugzilla.gnome.org/show_bug.cgi?id=763855
src/libostree/ostree-repo.c